﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ViVa_Portal.Controllers
{
    public class SecurityController
    {
        //
        // GET: /Security/

        //#region Public functions

        //public bool LoginOK(string username)
        //{
        //    bool loginOK = false;
        //    Directory dr = new Directory("", "_selfservice", "v1va@ccountSS", "LDAP://viva1001.zorg.lan");
        //    Entry user = dr.FindUserByUserName(username);

        //    if (user.MemberOf.Contains("CN=dl_appl_visio,OU=Applications,OU=Groups,DC=zorg,DC=lan"))
        //    {
        //        loginOK = true;
        //    }

        //    return loginOK;
        //}

        //#endregion




    }

}
